package io.itit.ecp.admin.provide.action.resp.largescreen;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;


@Data
@Accessors(chain = true)
public class EnergyConsumptionTrendResp implements Serializable {

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("数据")
    private List<DataItem> data;

    @Data
    @Accessors
    public static class DataItem implements Serializable {

        @ApiModelProperty("值")
        private BigDecimal value;

        @ApiModelProperty("时间")
        private String time;
    }
}
